import {WeaTools} from 'ecCom'

export const getReportDetailList =(params) =>{
	const {api = 'getReportDetailList'} = params;
	return WeaTools.callApi(`/api/report/workflow/${api}`, 'POST', params);
}

export const getQueryCondition = (params) => {
    return WeaTools.callApi('/api/report/workflow/getRequestListConditon', 'GET', params);
}

export const getRequestList = (params) => {
    const {api='getRequestList'} = params;
    return WeaTools.callApi(`/api/report/workflow/${api}`, 'POST', params);
}

/**流程类型统计表**/
export const  getWfTypeAnalyseSearchCondition =(params) => {
    return WeaTools.callApi('/api/report/workflow/getWfTypeAnalyseSearchCondition','POST',params);
}
export const  getWfTypeAnalyseCountData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getWfTypeAnalyseCountData','POST',params);
}
export const  getWfTypeAnalyseEchartData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getWfTypeAnalyseEchartData','POST',params);
}
/**待办事宜统计表**/
export const  getWfDoingAnalyseSearchCondition =(params) => {
    return WeaTools.callApi('/api/report/workflow/getWfDoingAnalyseSearchCondition','POST',params);
}
export const  getWfDoingAnalyseCountData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getWfDoingAnalyseCountData','POST',params);
}
export const  getWfDoingAnalyseEchartData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getWfDoingAnalyseEchartData','POST',params);
}
/**流程流转时间分析表**/
export const  getFlowTimeAnalyseSearchCondition =(params) => {
    return WeaTools.callApi('/api/report/workflow/getFlowTimeAnalyseSearchCondition','POST',params);
}

export const  getFlowTimeAnalyseCountData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getFlowTimeAnalyseCountData','POST',params);
}

export const  getFlowTimeAnalyseEchartData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getFlowTimeAnalyseEchartData','POST',params);
}

export const  getFlowTimeAnalyseWfVersions =(params) => {
    return WeaTools.callApi('/api/report/workflow/getFlowTimeAnalyseWfVersions','POST',params);
}

/**人员办理时间分析表**/
export const  getHandleReportSearchCondition =(params) => {
	return WeaTools.callApi('/api/report/workflow/getHandleReportSearchCondition','POST',params);
}

export const  getHandleReportCountData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getHandleReportCountData','POST',params);
}

export const  getHandleReportEchartData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getHandleReportEchartData','POST',params);
}

export const  getHandleEchartMore =(params) => {
    return WeaTools.callApi('/api/report/workflow/getHandleEchartMore','POST',params);
}

export const  getHandleReportEchartDetailList =(params) => {
    return WeaTools.callApi('/api/report/workflow/getHandleReportEchartDetailList','POST',params);
}

/**超期流程分析**/
export const  getMOTRSearchCondition =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTRSearchCondition','GET',params);
}
export const  getMOTRCountData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTRCountData','POST',params);
}
export const  getMOTREchartData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTREchartData','POST',params);
}
export const  getMOTREchartMore =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTREchartMore','POST',params);
}
/**超期最多人员分析**/
export const  getMOTPSearchCondition =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTPSearchCondition','GET',params);
}
export const  getMOTPCountData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTPCountData','POST',params);
}
export const  getMOTPEchartData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTPEchartData','POST',params);
}
export const  getMOTPEchartDetailList =(params) => {
    return WeaTools.callApi('/api/report/workflow/getMOTPEchartDetailList','POST',params);
}

/**流程办理情况统计表**/
export const  getFlowHandleSearchCondition =(params) => {
    return WeaTools.callApi('/api/report/workflow/getFlowHandleSearchCondition','GET',params);
}
export const  getFlowHandleReportData =(params) => {
    return WeaTools.callApi('/api/report/workflow/getFlowHandleReportData','POST',params);
}

/**获取未操作者**/
export const getUnoperators = params => {
    return WeaTools.callApi('/api/workflow/reqlist/getUnoperators', 'POST', params);
}